package com.jymj.dao;

import com.jymj.entity.RtInvestEntity;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

/**
 * Created by dl on 2017/10/15.
 */
@Mapper
public interface RtInvestDao extends BaseDao<RtInvestEntity> {

    RtInvestEntity queryObjectByRefid(Integer id);

    List<RtInvestEntity> queryListWithChild(Map map);

    void updateByRefId(RtInvestEntity invest);

    List<RtInvestEntity> queryAllList(Integer pid);

    List<RtInvestEntity> queryParentList(Integer pid);

    //void batchUpdate(List<RtInvestEntity> tempList);
    RtInvestEntity queryObjectParent(Map<String, Object> map);

    void updateParentCost(Map<String, Object> map);

    void updateHjCost(Map<String, Object> map);

    void updateParentCost1(Map<String, Object> map);

    void updateParentCost2(Map<String, Object> map);

    void updateHjCost2(Map<String, Object> map);

    void updateHjCost1(Map<String, Object> map);

    BigDecimal queryYzfCost(Map<String, Object> map);

    RtInvestEntity queryRtInvestTask(Map map);

    List<RtInvestEntity> queryRtInvestList(Map map);

    void savertInvest(RtInvestEntity rtInvestEntity);

    void updatertInvest(RtInvestEntity rtInvestEntity);

    RtInvestEntity queryRtInvest(Map map);

    List<RtInvestEntity> selectByItemid(Map map);

    void updateHtCost(Map map1);

    void saveRtCost(RtInvestEntity rtinvestEntity);

    RtInvestEntity getTotal(Integer pjid);

    void updateZj(Integer pjid);
}
